﻿using System;
using System.Globalization;
using System.Web.UI.WebControls;
using Spring.Web.UI;

namespace bGallery.Controls
{
	public partial class LanguageSelector : UserControl
	{
		protected void Page_Load(object sender, EventArgs e)
		{
			
		}

		/// <summary>
		/// Changes user culture property for serving localized resources
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		protected void SetLanguage(object sender, CommandEventArgs e)
		{
			this.UserCulture = new CultureInfo((string)e.CommandArgument);
		}
	}
}